package com.situ.studentmanagement.model;

/**
 * Created by baba on 2016/8/1.
 */
public class User {

    private Integer id;
    private String name;
    private String realname;
    private String password;
    private  String protect;
    private  String answer;
    private Integer sex;
    private String phone;
    private String address;


    public User(Integer id,
                    String name,
                    String realname,
                    String password,
                    String protect,
                    String answer,
                    Integer sex,
                    String phone,
                    String address
    ) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.protect=protect;
        this.answer=answer;
        this.phone = phone;
        this.realname = realname;
        this.address = address;
    }
    public User(Integer id,
                String name,
                String realname,
                String password,
                Integer sex,
                String phone,
                String address
    ) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.phone = phone;
        this.realname = realname;
        this.address = address;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }


    public int getSex() {
        return sex;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }


    public String getSexString(){
        if(sex==1){

            return "男";
        }else{
            return "女";
        }
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }



    public void setProtect(String protect) {
        this.protect = protect;
    }
    public String getProtect() {
        return protect;
    }

    public String getAnswer(String answer) {
        return
                answer;
    }
    public String getAnswer() {
        return answer;
    }


}